﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PackageHistory : BasePage
{
    BLLPackageManagement bllPackageManagement = new BLLPackageManagement();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (isLogin())
        {
            bindPackages(LoginedMember.Email);
        }
        else
        {
            Response.Redirect("~/Index.aspx");
        }
    }

    private void bindPackages(string useremail)
    {
        gvPackage.DataSource = bllPackageManagement.GetvCompletedPackagesByUseremail(useremail);
        gvPackage.DataBind();

        gvProgress.DataSource = bllPackageManagement.GetvProgressPackagesByUseremail(useremail); ;
        gvProgress.DataBind();
    }
}